package demo;

import java.io.FileOutputStream;
import java.nio.charset.StandardCharsets;

public class HelloWorld {
    public static void main(String[] args) throws Exception {
        FileOutputStream fos = new FileOutputStream("hello.txt");

        fos.write("大家好".getBytes(StandardCharsets.UTF_8));

        System.out.println("写出完毕!");
        fos.close();

        System.out.println("在hox-fix分支上实现流一个功能");

        for (int i = 0; i < 10; i++) {
            System.out.println("大家好");
        }

        System.out.println("请日本吃原子弹");

        System.out.println("日本投降");

    }
}
